<template>
	<view class="good">
		<view class="title">
			{{title}}
		</view>
		<view class="list1">
			<view class="cell" v-for="(item,index) in list" :key="index">
				<item :item="item"></item>
			</view>
			<view class="finishText">
				{{finishText}}
			</view>
		</view>
	</view>
</template>

<script>
	import item from './item.vue'
	export default {
		props: {
			title: {
				type: String,
				default: ''
			},
			list: {
				type: Array,
				default: () => []
			},
			finishText: {
				type: String,
				default: ''
			}
		},
		components: {
			item
		}
	}
</script>

<style lang="scss" scoped>
	.good {
		background-color: #2AAB34;
		width: 710rpx;
		margin: 30rpx auto 0 auto;
		border-radius: 30rpx;
		padding: 20rpx;
		color: #FFFFFF;

		.title {
			font-size: 17px;
		}

		.list1 {
			margin-top: 20rpx;

			.cell {
				padding-bottom: 20rpx;
			}
			.finishText{
				text-align: center;
				font-size: 12px;
			}
		}
	}
</style>
